package com.sweet.controller;

import com.sweet.Result;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
public class ZookeeperController {
    @Value("${server.port}")
    private String port;
    @GetMapping("/zk")
    public Result zookeeper() {
        return Result.ok(port + " : " + UUID.randomUUID());
    }
}
